<div class="topsection">
  <div class="toptxtsetion">eCommerce website packages, We only work with the best so it’s only fair to offer you the best, that’s why we use SagePay as our 100% trusted payment gateway.<br/>
    <img src="<?php echo $this->getSkinUrl()?>images/logo_03.jpg" alt="" /></div>
  	<div class="topadverts"> 
  	 <?php 
	//show the dynamic block
	$_block=Mage::getModel('cms/block')->load(2);
	echo $_block->getContent();
	?>
  </div>
  <div class="clearboth"></div>
</div>
<div class="maincontent">
<?php $posts = $this->getPosts(); ?>
<ul class="Portfoliolist">
<?php foreach ($posts as $post): ?>
	<?php 
	if($post->getNfile()){
		echo '<li><a href="'.$post->getAddress().'"><img width="192" height="137" src="'.Mage::getBaseUrl('media').$post->getNfile().'" alt="'.$post->getTitle().'" /></a></li>';
	}
	?>
<?php endforeach; ?>
</ul>
</div>

